import React from 'react';
import {messages} from "share/common";
import moment from "moment/moment";


export default {
  telephoneColumns() {
    return [
      {
        /*租户ID*/
        title: messages('financial-management.key733')/*租户ID*/,
        key: "tenantOID",
        dataIndex: 'tenantOID',
        width: 120,
      },
      {
        /*公司ID*/
        title: messages('financial-management.key734')/*公司ID*/,
        key: "companyOid",
        dataIndex: 'companyOid',
        width: 120,
      },
      {
        /*结算主键*/
        title: messages('financial-management.key859')/*结算ID*/,
        key: "recordId",
        dataIndex: 'recordId',
        width: 120,
      },
      {
        /*订单号*/
        title: messages('financial-management.key52'/*订单号*/),
        key: "orderNo",
        dataIndex: 'orderNo',
        width: 120,
      },
      {
        /*供应商*/
        title: messages('financial-management.key856')/*消费商名称*/,
        key: "vendor",
        dataIndex: 'vendor',
        width: 120,
      },
      {
        title: messages('financial-management.key882')/*员工工号*/,
        key: 'bookerCode',
        dataIndex: 'bookerCode',
        width: 120,
      },
      {
        title: messages('financial-management.key883')/*员工姓名*/,
        key: 'bookerName',
        dataIndex: 'bookerName',
        width: 120,
      },
      {
        /*充值手机号*/
        title: messages('financial-management.key884')/*被充值手机号*/,
        key: "phone",
        dataIndex: 'phone',
        width: 120,
      },
      {
        title: messages('financial-management.key885')/*充值数量*/,
        key: 'qty',
        dataIndex: 'qty',
        width: 120,
      },
      {
        /*面值总价*/
        title: messages('financial-management.key585')/*面值总价*/,
        key: "totalCost",
        dataIndex: 'totalCost',
        width: 120,
      },
      {
        title: messages('financial-management.key735')/*未税总价*/,
        key: "untaxedAmount",
        dataIndex: 'untaxedAmount',
        width: 120,
      },
      {
        title: messages('financial-management.key586')/*含税总价*/,
        key: "amount",
        dataIndex: 'amount',
        width: 120,
      },
      {
        title: messages('components.key53'/*币种*/),
        key: 'currencyCode',
        dataIndex: 'currencyCode'
      },
      {
        /*充值成功日期*/
        title: messages('financial-management.key584')/*充值成功日期*/,
        width: 120,
        key: "orderDate",
        dataIndex: 'orderDate',
        render: (value) => moment(value).format('YYYY-MM-DD')
      },
      {
        title: messages('budget.key8'/*公司*/),
        key: 'companyName',
        dataIndex: 'companyName',
        width: 120,
      },
    ]
  },
}
